package sk.gtug.pivoplus.server.mock;

import java.util.ArrayList;
import java.util.List;

import sk.gtug.pivoplus.server.domain.twig.TwigEvaluationType;
import sk.gtug.pivoplus.server.domain.twig.TwigKrcmicka;
import sk.gtug.pivoplus.server.domain.twig.TwigPivar;

public class Mocks {
	
	public static String NAME_PREFIX = "Krcmicka";
	public static int COUNT = 10;
	
	public static List<TwigKrcmicka> createMockPubs() {
		List<TwigKrcmicka> result = new ArrayList<TwigKrcmicka>();
		for (int i = 0; i < 10; i++) {
			TwigKrcmicka pub = new TwigKrcmicka();
			pub.setId(i+"");
			pub.setName(NAME_PREFIX + " " + i + "+");
			pub.setLatitude(48.1480+0.0001*i);
			pub.setLongitude(17.1078+0.0001*i);
			result.add(pub);
		}
		return result;
	}
	
	public static List<TwigEvaluationType> createMockEvalTypes() {
		List<TwigEvaluationType> result = new ArrayList<TwigEvaluationType>();
		TwigEvaluationType evalType = new TwigEvaluationType();
		evalType.setId("Pivo");
		evalType.setName("Pivo");
		result.add(evalType);
		evalType = new TwigEvaluationType();
		evalType.setId("Ceny");
		evalType.setName("Ceny");
		result.add(evalType);
		evalType = new TwigEvaluationType();
		evalType.setId("Obsluha");
		evalType.setName("Obsluha");
		result.add(evalType);
		evalType = new TwigEvaluationType();
		evalType.setId("Krcma");
		evalType.setName("Krcma");
		result.add(evalType);
		return result;
	}
	
	public static List<TwigPivar> createMockUsers() {
		List<TwigPivar> result = new ArrayList<TwigPivar>();
		for(int i = 0; i < 10; i++) {
			TwigPivar user = new TwigPivar();
			user.setId(i+"");
			user.setName("Pivar " + i);
			result.add(user);
		}
		return result;
	}
}
